<html>
<head>
<title>
{#$title#}-首页
</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8">
<style type="text/css">
.body{
	text-align:center;
}
.hello{
	width:800px;
	height:120px;
	border:1px solid #ccc;
	padding:10px;
	text-align:left;
	font-size:24;
	color:#ccc;
}
.msglist{
	width:800px;
	text-align:left;
	padding-top:15px;
	border-bottom:1px solid #ccc;
}
.msg{
	width:800px;
	height:120px;
	overflow: hidden;
	padding:10px;
	border-bottom:1px solid #ccc;
	font-size:14px;
	color:#333;
	word-break:break-all;
}
.pages{

	border-bottom:1px solid #ccc;
	font-size:12px;
	color:#333;

}
.add{

	font-size:12px;
	color:#333;

}
.pages a:link {color: #ccc}
.pages a:visited {color: #ccc}
.pages a:hover {color: #333}
.pages a:active {color: #ccc}

.top {
	font-size:14px;
}

.top a:link {color: #333}
.top a:visited {color: #333}
.top a:hover {color: #333}
.top a:active {color: #333}
</style>
</head>

<body >
<a name="top" id="top"></a>
	<div class="body" id="body" style="text-align:center;">
		
		<div class="hello">Message Board <br /><br />

			<span style="font-size:12px;float:right;">我们已经走得太远，以至于忘记了，为什么而出发。——纪伯伦……</span>
		</div>
		<div class="msglist">
			
			<span style="font-size:12px;float:left;color:#ccc">最新留言</span><hr />
	
			{#foreach from=$toPage.result item=msg #}
			<div class="msg">{#$msg.msg_content#}<br />
				<span style="float:right;color:#ccc">{#$msg.msg_time#}</span>
			</div>
			{#/foreach#}
		</div>
		<div class="pages">
			<form action="" method="post" >
			<a href="?p=1" >首页</a>
			<a href="?p={#$toPage.pre#}" >上一页</a>
			共{#$toPage.pages#}页   {#$toPage.page#}/{#$toPage.pages#}页
			<a href="?p={#$toPage.next#}" >下一页</a>
			<a href="?p={#$toPage.pages#}" >最后一页</a>
		
			<label for="select">跳到</label>
			<input type="text" id="select" name="page" size=2/>页
			<input type="submit" name="submit" value="Go"/>
			</form>
		</div>
		<div class="add">
			<form action="?a=add" method="post">
				 <textarea   cols="80" rows="10" name="content"  onfocus="if (this.value=='你也想留言？那动起鼠标键盘吧！'){ this.value=''}"  onblur="if (this.value==''){ this.value='你也想留言？那动起鼠标键盘吧！'}" >你也想留言？那动起鼠标键盘吧！</textarea>
				<span class="top"><a href="#top" target="_self" >返回顶部</a></span>
				<br />
				验证码:
				<img src="?&a=yzm"/>
				<input type="text" name="yzm" size="4" />
				<input type="submit" value='提交' name="submitadd">
			
				<input type="hidden" name="formkey" value="{#$formkey#}">
			</form>
		</div>
		
		
	</div>
</body>

</html>
